package com.hpsk.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author huangwang2832511019
 */

@Getter
@AllArgsConstructor
public enum RespCodeEnum {
    SERVER_ERROR(500,"服务器异常"),
    SUCCESS(200,"成功"),
    FAIL(400,"失败"),
    UNAUTHORIZED(401,"未授权"),
    NOT_FOUND(404,"未找到"),
    METHOD_NOT_ALLOWED(405,"方法不允许"),
    REQUEST_TIMEOUT(408,"请求超时"),
    INTERNAL_SERVER_ERROR(500,"服务器内部错误"),
    BAD_GATEWAY(502,"网关错误"),
    SERVICE_UNAVAILABLE(503,"服务不可用"),;
    private final Integer code;
    private final String msg;
}
